<script>
	$(function(){
		EBCMS.MYFUN.renderUploader('#{$field.unique}_pick',function(file,res){
			if (res.code) {
				var str = '';
				str += '<tr>';
				str += '<td style="padding:0px 0px 8px 0px !important;">';
				str += '<input class="form-control" name="{$field.field}[]" value="'+res.data.pathname+'"/>';
				str += '</td>';
				str += '<td style="width: 50px;padding:0px 0px 8px 8px !important;">';
				str += '<button class="btn btn-sm btn-primary" onclick="$(this).parent().parent().remove();">删</button> ';
				str += '</td>';
				str += '</tr>';
				$('#{$field.unique}_container').append(str);
			}else{
				EBCMS.MSG.alert(res.msg);
			};
		},'{$field.config.extensions|default=""}','{$field.config.path|default=""}');
	});
</script>
<table class="table" style="margin-bottom: 0px;">
	<tr>
		<td style="padding: 0px !important;">
			<table class="table" id="{$field.unique}_container" style="margin-bottom: 0px;">
			</table>
		</td>
		<td style="width: 100px;padding: 0px 0px 0px 10px !important;">
			<div id="{$field.unique}_pick">上传</div>
		</td>
	</tr>
</table>